#ifndef _CBOX
#define _CBOX

template<class T> struct CBox {
  T left, right, bottom, top, front, back;
  T width, height;
	CBox (T _left, T _right, T _bottom, T _top, T _front = 0, T _back = 1) :
		left(_left), right(_right), bottom(_bottom), top(_top), front(_front), back(_back) {

			width = right - left;
			height = top - bottom;
	}
  CBox () { left = right = bottom = top = front = back = width = height = 0; }
};

#endif
